<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MdiWin Demo - edit</title>
    <uieip type="file" value="inc" src="/yqwin/easyui/include.txt" cache="true" minute="1440"></uieip>
    <uieip type="file" value="css" src="/yqwin/css/yqwin.min" cache="false"></uieip>
    <uieip type="file" value="js" src="/yqwin/data/yqwin.min" cache="false"></uieip>
</head>

<body>
    <h2>yqRowsPopMove</h2>
    <a id="btn_show" href="#" class="easyui-linkbutton" data-options="" onclick="javascript:show()">show</a>
    <script>
        function show() {
            var $pp = $("#btn_show");
            var prevent_e = $.getPreventDefault($pp[0]);
            prevent_e.id = $pp.attr("id");
            prevent_e.options = {};

            var mdiinfo = $.yqGetWindParams();

            var move_pops = {
                ajaxUrl: "",
                prevent_e: prevent_e,
                mdiinfo: mdiinfo,
                title: "move",
                width: 600,
                height: 400,
                titles: titles,
                rows: rows,
                callback: function (rows) {
                    console.log("rows", rows);
                }
            };

            console.log(move_pops);

            if (window.top == window.self) {
                $.yqRowsPopMove(move_pops);
            }
            else {
                window.top.$.yqRowsPopMove(move_pops);
            }
        }


        var titles = [
            {
                "name": "no",
                "ui_title": "No",
                "ui_type": 2,
                "ui_width": 90,
                "ui_visible": true,
                "ui_readnnly": false,
                "ui_mask": {}
            }, {
                "name": "name",
                "ui_title": "Name",
                "ui_type": 2,
                "ui_width": 150,
                "ui_visible": true,
                "ui_readnnly": false,
                "ui_mask": {}
            }
        ];

        var rows = [{ "no": "1", "name": "name1" }, { "no": "2", "name": "name2" }];
    </script>
</body>

</html>